package com.xiaocg.juc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Date;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

@SpringBootApplication
public class XiaocgJucApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(XiaocgJucApplication.class, args);

        String[] beanDefinitionNames = run.getBeanDefinitionNames();
        for (String name:
             beanDefinitionNames) {
            System.out.println(name);
        }

        Date date = new Date();

    }

}
